package Demo2;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 86136
 * Date: 2024-05-26
 * Time: 15:13
 */
public class Test {
    public static void fuc(IShape iShape) {
        iShape.fuc();
        iShape.fuc0();
    }
    public static void main(String[] args) {
        //IShape iShape = new IShape();
        IShape iShape = new Cycle();
        Cycle cycle = new Cycle();
        Rect rect = new Rect();
        fuc(iShape);
        System.out.println("---------");
        fuc(cycle);
        System.out.println("---------");
        fuc(rect);
    }
}
